package com.base.service.impl;

import com.base.mapper.voipmapper.CompanyCarouselMapper;
import com.base.po.voip.CompanyCarousel;
import com.base.po.voip.CompanyCarouselExample;
import com.base.service.CompanyCarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("companyCarouselService")
public class CompanyCarouselServiceImpl implements CompanyCarouselService {
	
	@Autowired
	private CompanyCarouselMapper companyCarouselMapper;


	@Override
	public int countByExample(CompanyCarouselExample example) {
		return companyCarouselMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CompanyCarouselExample example) {
		return companyCarouselMapper.deleteByExample(example);
	}

	@Override
	public int insert(CompanyCarousel record) {
		return companyCarouselMapper.insert(record);
	}

	@Override
	public int insertSelective(CompanyCarousel record) {
		return companyCarouselMapper.insertSelective(record);
	}

	@Override
	public List<CompanyCarousel> selectByExample(CompanyCarouselExample example) {
		return companyCarouselMapper.selectByExample(example);
	}

	@Override
	public List<CompanyCarousel> selectByAll(String parentid) {
		return companyCarouselMapper.selectByAll(parentid);
	}

	@Override
	public CompanyCarousel selectByPrimaryKey(String id) {
		return companyCarouselMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(CompanyCarousel record, CompanyCarouselExample example) {
		return companyCarouselMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(CompanyCarousel record, CompanyCarouselExample example) {
		return companyCarouselMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(CompanyCarousel record) {
		return companyCarouselMapper.updateByPrimaryKeySelective(record);
	}
}
